package com.southpark.demo.control.proxies.config
{
	import com.southpark.demo.control.proxies.BaseProxy;
	import com.southpark.demo.services.http.config.GetConfigSettingsHTTPService;
	import com.southpark.framework.control.responders.IResponder;

	
	
	public class GetConfigSettingsProxy extends BaseProxy
	{
		
		public function GetConfigSettingsProxy(responder:IResponder)
		{
			super(responder,GetConfigSettingsHTTPService);
		}
		
		public function execute():void
		{			
			callService(this);
		}
		
		 
		override public function manageSuccess(data:Object):Object
		{
			var xml:XML = XML(data);
			
			isDebugMode = Boolean(int(xml.elements("isDebugMode")));
			isFakeServerMode = Boolean(int(xml.elements("isFakeServerMode")));
			
			return xml;
		}

	}
}